package com.sl.au.entity;

import javax.persistence.*;
import java.util.Date;

/**
 * 回款-计划
 * Created by RX on 2016-12-1.
 */
@Entity
@Table(name="sl_crm_payPlan")
//@NamedStoredProcedureQueries({
//        @NamedStoredProcedureQuery(name = "payNotionalPooling", procedureName = "[dbo].[应收账款归集]", parameters = {
//                @StoredProcedureParameter(mode = ParameterMode.IN, name = "contractID", type = String.class)
//        })
//})
public class PayPlan extends Root{

    /** 款项 */
    @Column(name="sFund")
    private String fund;
    /** 回款计划金额 */
    @Column(name="nScheduleSum")
    private float scheduleSum;
    /** 回款金额进度 */
    @Column(name="nPaidStage")
    private float paidStage;
    /** 回款时间偏差 */
    @Column(name="nDeviationDate")
    private long deviationDate;
    /** 计划收款时间 */
    @Column(name="dSchedulePayDate")
    private Date schedulePayDate;
    /** 备注 */
    @Column(name="sMemo")
    private String memo;
    /** 合同Id */
    @Column(name="sContractId")
    private String contractId;
    /** 合同类型 */
    @Column(name="sContractType")
    private String contractType;
    /** 回款Id */
    @Column(name="sPayHistoryId")
    private String payHistoryId;
    /** 计划Id */
    @Column(name="sPlanId")
    private String planId;

    public String getPlanId() {
        return planId;
    }

    public void setPlanId(String planId) {
        this.planId = planId;
    }

    public String getPayHistoryId() {
        return payHistoryId;
    }

    public void setPayHistoryId(String payHistoryId) {
        this.payHistoryId = payHistoryId;
    }

    public String getContractType() {
        return contractType;
    }

    public void setContractType(String contractType) {
        this.contractType = contractType;
    }

    public String getContractId() {
        return contractId;
    }

    public void setContractId(String contractId) {
        this.contractId = contractId;
    }

    public String getFund() {
        return fund;
    }

    public void setFund(String fund) {
        this.fund = fund;
    }

    public float getScheduleSum() {
        return scheduleSum;
    }

    public void setScheduleSum(float scheduleSum) {
        this.scheduleSum = scheduleSum;
    }

    public float getPaidStage() {
        return paidStage;
    }

    public void setPaidStage(float paidStage) {
        this.paidStage = paidStage;
    }

    public long getDeviationDate() {
        return deviationDate;
    }

    public void setDeviationDate(long deviationDate) {
        this.deviationDate = deviationDate;
    }


    public Date getSchedulePayDate() {
        return schedulePayDate;
    }

    public void setSchedulePayDate(Date schedulePayDate) {
        this.schedulePayDate = schedulePayDate;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }
}
